path = '../cache';
list = dir([path '/*.pshape']);
for i_file = 1:length(list)
    %h = drawSVG([path '/' list(i_file).name]);
    %saveas(h,[path '/' num2str(i_file-1,'%06d') '.png']);
    %close;
    tic
    img = drawSVGtoImage([path '/' list(i_file).name]);
    imwrite(img,[path '/' list(i_file).name(1:end-4) '.png']);
    toc
end